<template>
  <div id="app">
    <!-- <TableCanvas /> -->
    <CountDown v-slot="slotProps" :milliseconds="8000" :onEnd="downEnd">
      <span>{{ slotProps.hour }}:</span>
      <span>{{ slotProps.minute }}:</span>
      <span>{{ slotProps.second }}:</span>
      <span>{{ slotProps.millisecond }}</span>
    </CountDown>
    <CountDown :milliseconds="10000" :interval="50" />
    <!-- <IframeComponent /> -->
  </div>
</template>

<script>
// import CalenderComponent from './components/element/calender'
// import TableCanvas from './components/table-canvas'
// import WinBottom from './components/num-up'
import CountDown from './components/count-down'
// import WsComponent from './components/ws/index'
// import IframeComponent from './components/iframe/iframe'

export default {
  name: 'App',
  components: {
    // TableCanvas,
    // WinBottom,
    // IframeComponent,
    CountDown,
  },
  methods: {
    downEnd() {
      console.log('秒杀倒计时结束')
    },
  },
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
